package cn.yfj.org.controller;


import cn.yfj.basic.util.PageList;
import cn.yfj.org.domain.Logging;
import cn.yfj.org.query.LogQuery;
import cn.yfj.org.service.ILogServiceI;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/log")
@Api(tags = "日志接口", description = "日志接口详细描述")
public class LogController {
    @Autowired
    private ILogServiceI service;

    @GetMapping
    public List<Logging> queryById() {
        return service.queryAll();
    }
    @PostMapping
    public PageList<Logging> querypage(@RequestBody LogQuery query){
        return service.queryPage(query);
    }
}
